package com.code.day08JiCheng.JiCheng;

public class Dome02 {
    String name ="张三";

    public Dome02() {
        System.out.println("我是无参构造");
    }
    public Dome02(int i) {
        this();
        System.out.println("我是有参构造");
    }
    public void eat(String name) {
        System.out.println(name);
        System.out.println(this.name);
        System.out.println("我是成员方法变量");

    }
}
